export function verify(inputName, value) {
    let result = null;
    switch (inputName) {
        case 'userName':
            let regPhone = /^1(3|4|5|7|8)\d{9}$/g;
            result = regPhone.test(value);
            break;
        case 'userPwd':
            let regPassword = /.{6,20}$/g;
            result = regPassword.test(value);
            break;
        default:
            break;
    }
    return result;
}